package com.chang.bootplus.po;


import com.chang.bootplus.vo.LocationVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "订单添加", description = "")
public class OrderPO {

    @ApiModelProperty(value = "其他信息",example = "订单信息1111",required = true)
    private String message;

    @ApiModelProperty(value = "用户id",required = true)
    private Long userId;

    @ApiModelProperty(value = "商家id",required = true)
    private Long busId;

    @ApiModelProperty(value = "商品总价",example = "200.00",required = true)
    private BigDecimal amount;

    @ApiModelProperty(value = "买家地址信息id",required = true)
    private Long userLocationId;

    @ApiModelProperty(value = "卖家地址信息id",required = true)
    private Long busLocationId;

    @ApiModelProperty(value = "商品详情",required = true)
    private List<OrderDetailPO> detailsList;

}
